package com.hzncc.flowable_diboot.trial_contracts.vo;

import com.diboot.core.binding.annotation.BindEntity;
import com.hzncc.flowable_diboot.trial_contracts.entity.TrialContract;
import com.hzncc.flowable_diboot.trial_contracts.entity.TrialContractCancel;
import com.hzncc.flowable_diboot.trial_contracts.entity.TrialContractUpdate;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 试用合同审批单 VO定义
* @author MyName
* @version 1.0
* @date 2024-10-16
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class TrialContractAuditDetailVO extends TrialContractAuditListVO  {
    private static final long serialVersionUID = 1663511803738250056L;

    @BindEntity(
            entity = TrialContract.class,
            condition = "this.trialContractId = id",
            deepBind = true
    )
    private TrialContractDetailVO trialContract;

    @BindEntity(
            entity = TrialContractUpdate.class,
            condition = "this.id = contract_audit_id",
            deepBind = true

    )
    private TrialContractUpdateDetailVO trialContractUpdate;

    @BindEntity(
            entity = TrialContractCancel.class,
            condition = "this.id = contract_audit_id",
            deepBind = true
    )
    private TrialContractCancelDetailVO trialContractCancel;

}